import request from '@/utils/request'

/**
* 设备工位绑定关系表分页查询
* @param {查询条件} data
*/
export function listDeviceBinding(query) {
  return request({
    url: 'business/DeviceBinding/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增设备工位绑定关系表
* @param data
*/
export function addDeviceBinding(data) {
  return request({
    url: 'business/DeviceBinding',
    method: 'post',
    data: data,
  })
}
/**
* 修改设备工位绑定关系表
* @param data
*/
export function updateDeviceBinding(data) {
  return request({
    url: 'business/DeviceBinding',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取设备工位绑定关系表详情
* @param {Id}
*/
export function getDeviceBinding(id) {
  return request({
    url: 'business/DeviceBinding/' + id,
    method: 'get'
  })
}

/**
* 删除设备工位绑定关系表
* @param {主键} pid
*/
export function delDeviceBinding(pid) {
  return request({
    url: 'business/DeviceBinding/delete/' + pid,
    method: 'delete'
  })
}
